package idiet.dao.hibernate;

import idiet.bean.Unit;
import idiet.dao.SqlStatementHelper;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository("foodIngredientElementUnitDao")
public class FoodIngredientElementUnitDao {
	@Autowired
	SessionFactory sessionFactory;
	@Autowired
	SqlStatementHelper sqlStatementHelper;
	public void createFoodIngredientElementUnit(Unit unit){
		this.sessionFactory.getCurrentSession().save(unit);
	}
}
